import Layout from '@/layout'

const couponRouter = {
  path: '/coupon',
  component: Layout,
  redirect: '/couponManager',
  name: 'order',
  meta: {
    title: '优惠活动',
    icon: 'tree-table',
    noCache: true,
    roles: ['myClinic']
  },
  children: [
    {
      path: '/couponManager',
      component: () => import('@/views/coupon/couponManager'),
      name: '优惠管理',
      meta: {icon: 'edit', title: '优惠券', roles: ['clinic:info']}
    },
    {
      path: '/placing',
      component: () => import('@/views/order/placingRecord'),
      name: '优惠查询',
      meta: {icon: 'edit', title: '出库管理', roles: ['clinic:info']}
    }
  ]
}

export default couponRouter
